﻿
namespace SerialPortLibrary
{
    /// <summary>
    /// 协议接口
    /// </summary>
    public interface IDriver:IDataPublish
    {
        /// <summary>
        /// 挑包
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        bool PickPacket(ISerialData data);
        /// <summary>
        /// 数据处理
        /// </summary>
        /// <param name="data"></param>
        void DataProcess(ISerialData data);
    }
}
